import { defHttp } from '/@/utils/http/axios';

enum Api {
  userList = '/basic-api/userList',
  Adduser = '/basic-api/Adduser',
  userDel = '/basic-api/userDel',
  dashboard = '/basic-api/dashboard',
  userUpdate = '/basic-api/Updateuser',
  filemanage_group_add = '/basic-api/filemanage_group_add',
  filemanage_group_List = '/basic-api/filemanage_group_list',
  filemanage_group_Del = '/basic-api/filemanage_group_delete',
  getImageApi = '/basic-api/getImage',
  ImageDelApi = '/basic-api/ImageDel',
}

/**
 * @description: user login api
 */
export function AdministrationListApi(params) {
  // const data: any = {};
  return defHttp.get({
    url: Api.userList,
    params,
  });
}

export function RegisterApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.Adduser,
    params,
  });
}

export function DeleteUsersApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.userDel,
    params,
  });
}

export function dashboardApi(params) {
  // const data: any = {};
  return defHttp.get({
    url: Api.dashboard,
    params,
  });
}

export function AccoutUpdateApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.userUpdate,
    params,
  });
}

// 文件分组
export function filemanageGroupAddApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.filemanage_group_add,
    params,
  });
}

// 文件分组
export function filemanageGroupListApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.filemanage_group_List,
    params,
  });
}

// 删除分组
export function filemanageGroupDelApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.filemanage_group_Del,
    params,
  });
}

// 获取图片
export function getImageApi(params) {
  // const data: any = {};
  return defHttp.get({
    url: Api.getImageApi,
    params,
  });
}

// 删除图片
export function ImageDelApi(params) {
  // const data: any = {};
  return defHttp.post({
    url: Api.ImageDelApi,
    params,
  });
}
